package com.meteor.service.impl;

import com.meteor.mapper.ShopMapper;
import com.meteor.pojo.Shop;
import com.meteor.service.ShopService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {

    @Resource
    private ShopMapper shopMapper;

    @Override
    public List<Shop> selectAllShop() {
        return shopMapper.selectAllShop();
    }

    @Override
    public int deleteByBookId(Integer bookId) {
        return shopMapper.deleteByBookId(bookId);
    }

    @Override
    public int updateCountByBookId(Shop shop) {
        return shopMapper.updateCountByBookId(shop);
    }

    @Override
    public Shop selectBookByBookId(Integer bookId) {
        return shopMapper.selectBookByBookId(bookId);
    }

    @Override
    public int insertBook(Shop shop) {
        return shopMapper.insertBook(shop);
    }

    @Override
    public List<Shop> selectShopByBookId(Integer[] arr) {
        return shopMapper.selectShopByBookId(arr);
    }
}
